<template>
    <div>
        <div class="user-article">
            <div>
                <span>动态</span>
            </div>

        </div>
        <div class="coverParent">
            <itemCover v-for="(item, itemIndex) in result" :nowGenre_Item="item"
                       :key="itemIndex" class="cover"></itemCover>
        </div>
    </div>
</template>

<script>
    import Navbar from "@/components/common/navbar";
    import itemCover from "@/components/common/itemCover";

    export default {
        name: "userArticle",
        components: {Navbar, itemCover},
        data() {
            return {
                result: []
            }
        },
        mounted: function () {
            this.init()
        },
        methods: {
            init() {
                this.$http.get("/movie/userVideo", {
                    params: {
                        uuid: this.$route.query.uuid
                    }
                }).then((res) => {
                    this.result = res.data.data
                })
            }
        }
    }
</script>

<style lang="less" scoped>
    .user-article {
        display: flex;
        align-items: center;
        background-color: white;
        height: 11.111vw;
        padding: 0 2.778vw;
        border-top: 0.278vw solid #ddd;

        span {
            margin: 0 1.944vw;
            color: #777;
        }
    }

    .coverParent {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: baseline;

        .cover {
            /*width: 45%;*/
            margin: 1.39vw 0;
        }
    }
</style>